package diva.pap.affiliate;

import diva.android_library.view.HasView;
import diva.android_library.view.ViewBase;

import android.content.Context;
import android.view.LayoutInflater;
import diva.pap.R;

public class PapTabView extends ViewBase implements HasView {
  public PapTabView(Context context, int tabLabel, int tabIcon) {
    super(LayoutInflater.from(context).inflate(R.layout.tab_item, null));
    getTextView(R.id.tabText).setText(tabLabel);
    getImageView(R.id.tabIcon).setImageResource(tabIcon);
  }
}
